// 引入逻辑层
const {getCategorizes, addCategorize, delcategorize, editCategorize} = require('../service/categorizes.service')
module.exports = {
    // 获取所有分类
    getCategorizes: async (ctx, next)=> {
        await getCategorizes(ctx)
    },
    addCategorize: async (ctx, next)=> {
        await addCategorize(ctx)
    },
    delcategorize: async (ctx, next)=> {
        await delcategorize(ctx)
    },
    editCategorize: async (ctx, next)=> {
        await editCategorize(ctx)
    },
}